import Opt from '@/components/dt/info/Opt.js'

class YearColumn extends Opt {
  
  constructor() {
    super()
    this.build()
  }
  
  build() {
    this.createAll()
    this.opts.push(...this.all)
  }

  createAll() {
    this.all = [{
        type: 'index',
        title: '序号',
        minWidth: 50,
      },
      {
        field: 'orBonusMonth',
        title: '奖金发放月份',
        minWidth: 110
      },
      {
        field: 'orBonusTypeStr',
        title: '奖金单类型',
        minWidth: 90,
      },
      {
        field: 'shouldBonusAmount',
        title: '房源应付奖金(元)',
        minWidth: 150,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'yearSettlementAmount',
        title: '折算年底发放奖金(元)',
        minWidth: 150,
        cell: {
          text: {
            type: 'number'
          }
        }
      }
    ]
  }
}

export default YearColumn
